package ldh.fx.adminfx.util;

import javafx.stage.Stage;

public class StageUtil {

    private static volatile Stage stage;

    public static void setStage(Stage stage) {
        StageUtil.stage = stage;
    }

    public static Stage getStage() {
        return stage;
    }

    public static void exit() {
        stage.close();
    }
}
